<?php
/*
Template Name: News & Events
*/

get_header(); ?>
    <div id="contentTop">
      <?php if ( function_exists('yoast_breadcrumb') ) {
		  	yoast_breadcrumb('<p id="breadcrumbs">','</p>');
		  } ?>
		</div>
		<div id="content">
		  <div id="main" role="main">
		    <div id="contentContainer">
		      <h2><?php the_title(); ?></h2>
		      <?php query_posts('posts_per_page='); ?>
		      <?php if(have_posts()) : ?> <!--  conditional statement...if we have any posts to display -->
            <?php while(have_posts()) : the_post() ?> <!-- while is the loop ...so while we have posts, grab all the posts -->          
            <div class="post" id="post-<?php the_ID(); ?>">
            <h4 class="entry-title">
              <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>"><?php the_title(); ?></a>
            </h4>
            <span class="entry-date"><?php the_time(__('F d, Y', 'example')); ?></span>
            <div class="post-content-wrap">
              <div class="post-content">
                <?php the_excerpt_reloaded(100, '<a><p><h1><h2><h3><h4><h5><h6><span><strong>', 'none', TRUE, 'Read More &raquo;', false, 1, FALSE); ?>
              </div><!-- post-content -->
            </div><!-- post-content-wrap -->
          </div><!-- .post -->
          <?php endwhile; ?>
          <div class="post-nav">
            <div class="previous"><?php previous_posts_link('&lsaquo; Previous Page') ?></div>
            <div class="next"><?php next_posts_link('Next Page &rsaquo;') ?></div>
          </div><!-- .post-nav -->
          <?php else : ?>
            <?php /* Error 404 */ ?>  
            <?php $filename = TEMPLATEPATH . '/404.php'; if (file_exists($filename)) { include($filename); } ?>
          <?php endif; ?>
		    </div><!-- #contentContainer -->
		</div><!-- #main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>


